<?php
namespace app\admin\controller;
use \think\Controller;
use \think\Session;
class Common extends Controller
{
	public function _initialize(){
		//$path = url('index/index');
		if(!Session::has('login_id')){
			// echo "<script>alert('请登录后访问');</script>";
			// location.href='$path';
			$this->redirect('index/index');

		}
	}
}